import { createApp } from 'vue';
import App from './App.vue';
import router from './router';
import ElementPlus from 'element-plus';
import 'element-plus/dist/index.css';
import store from './store';
import 'normalize.css';
import './assets/css/index.less';
import '../mock/index';
import { loadStoreLogin } from '@/store/index';
import '@/assets/font/iconfont.css';

// import register from './global/index';
const APP = createApp(App);
// 防止刷新页面，vuex数据丢失
loadStoreLogin();
// 组件单独引入
// register(APP);
APP.use(router);
APP.use(store);
// 组件全局引入
APP.use(ElementPlus);
APP.mount('#app');
